package cn.com.dhcc.app.pub.module.login.controller;

import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.com.dhcc.app.core.base.BaseController;
import cn.com.dhcc.app.core.tag.CommonStaticCode.SUCCESSFAIL;

@Controller("pub")
public class ThirdAppLoginController extends BaseController {

	@RequestMapping("thirdapp_log")
	@ResponseBody
	public Map<String, Object>  thirdAddLogin(Model model, String msg){
		try{
			busiLog("第三方应用单点登录管理", "登录", SUCCESSFAIL.SUCCESS,msg);
			return jsonSuccessResult("第三方应用单点登录成功!");
		} catch (Exception e) {
			busiLog("第三方应用单点登录管理", "登录", SUCCESSFAIL.FAIL,e.getMessage());
			return jsonFailResult("第三方应用单点登录记录日志失败!");
		}
	} 
}
